import request from '@/plugins/axios'

export function fetchList(query) {
    return request({
        url: '/api/lessormangelinkinfo/page',
        method: 'get',
        params: query
    })
}

export function addLinkInfo(obj) {
    return request({
        url: '/api/lessormangelinkinfo',
        method: 'post',
        data: obj
    })
}

export function getObj(id) {
    return request({
        url: '/api/lessormangelinkinfo/' + id,
        method: 'get'
    })
}

export function delObj(id) {
    return request({
        url: '/api/lessormangelinkinfo/',
        method: 'delete',
    })
}

export function putLinkInfo(obj) {
    return request({
        url: '/api/lessormangelinkinfo',
        method: 'put',
        data: obj
    })
}

export function getByClientLesseeId(clientLesseeId) {
    return request({
        url: '/api/lessormangelinkinfo/getByClientLesseeId',
        method: 'get',
        params: clientLesseeId
    })
}
